import request from '@/plugins/request';

var pre = '/questionnaire';
if (process.env.NODE_ENV !== 'development') {
    pre = '/api/pb/ques-invest' + pre;
}

// 我的问卷
export function mineWJ (data) {
    return request({
        url: `${pre}/info/myQuestionnairePage`,
        method: 'post',
        data
    });
}

// 问卷详情
export function detailsWJ (params) {
    return request({
        url: `${pre}/info/get`,
        method: 'get',
        params
    });
}
// 保存问卷结果
export function saveResult (data) {
    return request({
        url: `${pre}/result/saveResult`,
        method: 'post',
        data
    });
}
// 查看问卷结果详情
export function isResultDetail (params) {
    return request({
        url: `${pre}/result/resultDetail`,
        method: 'get',
        params
    });
}
